package com.liyiruo.springbootslf4j;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringBootSlf4jApplication {

    private static Logger logger = LoggerFactory.getLogger(SpringBootSlf4jApplication.class);

    public static void main(String[] args) {

        SpringApplication.run(SpringBootSlf4jApplication.class, args);

        System.out.println("=====================日志开始===================");
        logger.trace("======>{}", "trace");
        logger.debug("======>{}", "debug");
        logger.info("=======>{}", "info");
        logger.warn("==========>{}", "warn");
        logger.error("==========>{}", "error");
        System.out.println("===================日志结束=====================");

    }
}
